package com.ssy.lingxi.purchase.model.enums;

import com.ssy.lingxi.common.language.LanguageHolder;

/**
 *  采购竞价单外部记录类型枚举
 * @author lxc
 * @version 2.0.0
 * @date 2022-04-01
 */
public enum ExternalLogTypeEnum {

    /**
     * 配送方式: 竞价报名、审核竞价报名、竞价
     *    1、竞价报名
     *    2、审核竞价报名
     *    3、竞价
     */

    /**
     * 1: 竞价报名
     */
    BIDDING_REGISTRATION(1, "竞价报名"),

    /**
     * 2: 审核竞价报名
     */
    EXAMINE_REGISTRATION(2, "审核竞价报名"),

    /**
     * 3: 竞价
     */
    BIDDING(3, "竞价");

    ExternalLogTypeEnum(Integer code, String msg) {
        this.code = code;
    }

    private final Integer code;

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return LanguageHolder.getName(this.getClass(), this.getCode());
    }

    public static String getCodeMsg(Integer code) {
        return LanguageHolder.getName(ExternalLogTypeEnum.class, code);
    }
}
